export default class LocalStorage {
  static getString(key: string): string {
    return localStorage.getItem(key) || ""
  }

  static getMap(key: string): Record<string, any> {
    return JSON.parse(localStorage.getItem(key) || "{}")
  }

  static getList(key: string): Array<any> {
    return JSON.parse(localStorage.getItem(key) || "[]")
  }
}
